# 继承
class Person(object):
    def __init__(self, name, age, money):
        self.name = name
        self.ade = age
        self.__money = money

    def setMoney(self, money):
        self.__money = money

    def getMoney(self):
        return self.__money

    def run(self):
        print('run')

    def eat(self):
        print('eat')


class Student(Person):
    def __init__(self, name, age, money, stuid):
        super(Student, self).__init__(name, age, money)
        self.stuid = stuid


stu = Student('张涛', 20, 11111, 9999)
print(stu.name, stu.ade)
stu.run()
print(stu.getMoney())
